package com.hanyxx.coll;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

/**
 * @author layman
 * @date 2021/2/24
 */
public class Demo02 {
    public static void main(String[] args) {
        Object[] o = new Object[10];

        o[1] = new Layman("layman", 18);
        o[2] = "ABC";
        o[3] = 1;
        o[3] = new Object[3];
        o[4] = 12.22;
        o[5] = LocalDateTime.now();

        Set set = new HashSet();

    }
}
@Data
@AllArgsConstructor
class Layman{
    private String name;
    private Integer age;
}